package com.dzm.xgb.core.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dzm.xgb.core.pojo.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dzm.xgb.core.pojo.vo.*;

/**
 * <p>
 * 用户基本信息 服务类
 * </p>
 *
 * @author Dzm
 * @since 2024-08-27
 */
public interface UserInfoService extends IService<UserInfo> {

    void register(RegisterVo vo);

    UserInfoVo login(LoginVo vo, String ip);

    Page<UserInfo> searchPage(Integer pageNum, Integer pageSize, SearchVo vo);

    void lock(Long id, Integer status);

    boolean checkPhone(String phoneNumber);

    /**
     * 查询用户登录信息
     * @param userId
     * @return
     */
    UserIndexVO getUserIndexById(Long userId);
}
